﻿using UnityEngine;
using System.Collections;

namespace ChuMeng
{
	public class WorldManager : MonoBehaviour
	{
		public static WorldManager worldManager;
		public enum WorldStation {
			NotEnter,  //没有进入任何场景
			Entering,  //正在进入一个场景
			Enter,   //成功进入一个场景
			Relive,   //死亡复活
			AskChangeScene,  //请求进入一个场景
		}

		public enum SceneType
		{
			City, //城市中可以看到其它玩家
			Single, //单人副本只有玩家自己不用同步移动数据等战斗数据
			Multiple, //多人副本同步自己和其它玩家的数据
		}
		public SceneType sceneType = SceneType.City;
		public WorldStation station = WorldStation.NotEnter;
		
		int nextSceneId;

		CScene activeScene = null;
		public CScene GetActive() {
			return activeScene;
		}

		void Awake ()
		{
			worldManager = this;
			DontDestroyOnLoad (this.gameObject);
		}

		// Use this for initialization
		void Start ()
		{
		
		}
		
		// Update is called once per frame
		void Update ()
		{
		
		}
		


	}
}
